package com.game.framework.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.game.framework.dao.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p> * 角色表 Mapper 接口 * </p>
 */
@Mapper
public interface RoleMapper extends BaseMapper<RoleEntity> {

    RoleEntity selectByRoleId(@Param("roleId") Long roleId);

    List<RoleEntity> selectByUserId(@Param("userId") Long userId);

    Integer updateById(RoleEntity entity);

    Boolean removeByUserId(@Param("userId") Long userId);

    Boolean removeByRoleId(@Param("roleId") Long roleId);
}